package boundarys;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JSplitPane;
import javax.swing.JMenuBar;

import java.awt.List;
import java.awt.Choice;
import java.awt.Button;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class DefineProductGUI extends AbstractGUI {
	/**
	 * Define Product frame
	 */
	private JFrame defineProductFrame;
	/**
	 * Define product constructor
	 */
	public DefineProductGUI(){
		initialize();
		initGUI(defineProductFrame);
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		defineProductFrame = new JFrame();

		defineProductFrame.setResizable(false);
		defineProductFrame.setTitle("CCRM>Define Product");
		defineProductFrame.setBounds(100, 100, 422, 288);
		defineProductFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		defineProductFrame.getContentPane().setLayout(null);
		
		JButton createProductBtn = new JButton("Create Product");
		createProductBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) { //if Create Product Btn clicked 
				defineProductFrame.dispose();
				new CreateProductGUI();
			}
		});
		createProductBtn.setBounds(132, 53, 134, 47);
		defineProductFrame.getContentPane().add(createProductBtn);
		
		JButton deleteProductBtn = new JButton("Delete Product");
		deleteProductBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {//if Delete Product Btn clicked 
				defineProductFrame.dispose();
				new DeleteProductGUI();
			}
		});
		deleteProductBtn.setBounds(132, 134, 134, 47);
		defineProductFrame.getContentPane().add(deleteProductBtn);
		defineProductFrame.setVisible(true);
	}

	@Override
	/**
	 * AbstractGUI overridden method for getting a reply from server 
	 */
	public void getReply(Object r) {
		
	}
}
